#!/bin/sh 
. /lib/functions/nvram2uci.sh

mode=`nvram get linux  wps_wifi_button`

if [ $mode = "1" ];then
	mode="wps"
else
	mode="wifi"
fi
uci set button.wps_wifi.switch=$mode
uci commit
